D:
cd D:\Dropbox\tools\tcp_http_161\tools
set folder=..\build\%date:~0,2%%date:~3,2%%date:~-2%
set hour=%time:~0,2%
if "%hour:~0,1%" == " " set hour=0%hour:~1,1%
set min=%time:~3,2%
if "%min:~0,1%" == " " set min=0%min:~1,1%
set secs=%time:~6,2%
if "%secs:~0,1%" == " " set secs=0%secs:~1,1%
set filename=build_%hour%%min%%secs%.hex
md %folder%
.\hexcombine.exe ..\bootstation_git\Obj\boot_100.hex ..\failsafeapp_git\failsafe_Objs\failsafe_100.hex ..\build\final0.hex
.\hexcombine.exe ..\build\final0.hex ..\failsafeapp_git\mini_Objs\miniapp_100.hex %folder%\%filename%
copy %folder%\%filename% ..\build\final.hex /Y
del ..\build\final0.hex
